home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 10 / FM Towns Free Software Collection 10.iso / ms_dos / tool / select / gotoh.h < prev    next >
Text File  |  1995-02-18  |  794b  |  27 lines

  1. #ifndef _GOTOH
  2. #define _GOTOH
  3.  
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6.  
  7. #define TRUE            1
  8. #define FALSE            0
  9. #define NOERROR            0
  10.  
  11. #define rnd(x)            (rand()%x)                        /* 0~ x-1            */
  12. #define dice(x)            (rand()%x +1)                    /* 1~ x            */
  13. #define randomize(x)    srand(x)                        /*        〃            */
  14. #define beep()            printf("\a")                    /*        〃            */
  15.  
  16. #ifndef _TXT_TOOL
  17. #define locate(x,y)        printf("\x1b[%d;%df", y , x )    /* x1~80  y1~25   */
  18. #define txt_cls()        printf("\f")                    /* no param         */
  19. #define txt_color(col)    printf("\x1b[%dm", col+30 )        /*  c=0~7          */
  20. #define txt_csloff()    printf("\x1b[1v")                /* カーソル消去     */
  21. #define txt_cslon()        printf("\x1b[0v")                /* カーソル表示     */
  22. #define txt_csl(x)        printf("\x1b[%dv",1-x)            /* 1表示 0非表示     */
  23. #endif
  24.  
  25. /* #define time$ clock() */
  26. #endif
  27.